//
//  zhuceViewController.m
//  豆瓣
//
//  Created by hy on 16/1/5.
//  Copyright © 2016年 hongyu. All rights reserved.
//

#import "zhuceViewController.h"
#import "zcViewController.h"
@interface zhuceViewController ()

@end

@implementation zhuceViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.view.backgroundColor = [UIColor whiteColor];
    self.navigationController.navigationBar.barStyle = UIStatusBarStyleLightContent;
    self.navigationItem.title = @"登录";
    self.navigationController.navigationBar.translucent = NO;
    self.navigationController.navigationBar.tintColor = [UIColor whiteColor];
    
    UIBarButtonItem *item = [[UIBarButtonItem alloc] initWithTitle:@"返回" style:UIBarButtonItemStylePlain target:self action:@selector(itemAction:)];
    self.navigationItem.leftBarButtonItem = item;
    [item release];
}
- (void)itemAction:(UIBarButtonItem *)item {
    [self dismissViewControllerAnimated:YES completion:^{
    }];
}
- (IBAction)fanhui:(id)sender {
    zcViewController *vc = [[zcViewController alloc] init];
    [self.navigationController pushViewController:vc animated:YES];
}
- (IBAction)denglu:(id)sender {
    NSString *str = @"注销";
    self.block(str);
    [self dismissViewControllerAnimated:YES completion:^{
        }];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

- (void)dealloc {
    [_fhbutton release];
    [_dlbutton release];
    [super dealloc];
}
@end
